Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove test fixture compileAndRunScript and compileAndInstantiateModule #1249

Merged
merged 2 commits into from
Sep 28, 2023

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Sep 27, 2023

The utility methods are unused in workerd other than to test themselves.
Removing this removes a number of direct uses of v8 apis in the code that just appear to be unnecessary.

In the internal equivalent the compileAndRunScript utility is also unused and can safely be removed.

An argument can be made to keep compileAndInstantiateModule since internally that is used in a handful of fuzzing tests but it's not clear if those will ever be ported out to workerd and the internal test-fixture impl has it's own copy of compileAndInstantiateModule. Removing this in a separate commit here so that, if necessary, we can revert removing compileAndInstantiateModule separately if necessary.

The utility method is unused other than to test itself.
Removing this removes a number of direct uses of v8 apis in the
code that just appear to be unnecessary.
@jasnell jasnell merged commit 78c3e5a into main Sep 28, 2023
7 checks passed
@jasnell jasnell deleted the jsnell/remove-unused-testfixture-compileandrunscript branch September 28, 2023 14:20
@jasnell
Copy link
Member Author

jasnell commented Sep 28, 2023

ah well, I accidentally landed with squash and merge combining the two commits. Doh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants